<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/resource/index.css" rel="stylesheet" />
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <input class="hidden" id="authority" name="authority" th:value="${authority}" >
                    <input class="hidden" id="type" name="authority" th:value="${type}" >
                </div>
                <div class="card resourceInput">
                    <div class="box-align" style="width: 20%;">
                        <h4 style="width: 33%;">资源名称:</h4>
                        <input id="name" name="name" placeholder="请输入资源名称" class="form-control" type="text">
                    </div>
                    <div style="flex: 1">
                        <button type="submit" class="layui-btn" style="margin-left: 20px;height: 32px;line-height: 32px" onclick="reLoad()">搜索</button>
                    </div>
                </div>
                <div class="card">
                    <button type="submit" class="layui-btn" onclick="addResource()">添加课程资源</button>
                    <table  id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>

            </div>
        </div>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 -->
<div>
    <script type="text/javascript">
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
        var s_resetPwd_h = 'hidden';
    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/webJs/jzweb/resource/resource.js"></script>
</body>
</html>